package com.sinosoft.rabbit.test;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Auther: zouren
 * @Date: 2019/5/20 16:35
 * @Description:
 */
@Component
@RabbitListener(queues = "order-test.ttl")
@Slf4j
public class MessageConsumer {

    @RabbitHandler
    public void handler(String content) {
        log.info("消费内容：{}", content);
    }
}
